<template>
  <div class="comment">
    <Comment
      v-for="(item, index) in list"
      :key="index"
      :item="item"
      :index="index"
    />
  </div>
</template>

<script>
import Comment from "../comment/index";
export default {
  data() {
    return {
      list: [],
    };
  },
  components: {
    Comment,
  },
  created() {
    this.$axios({
      url: "/post_comment/1",
    }).then((res) => {
      console.log(res);
      this.list = res.data.data;
    });
  },
};
</script>

<style lang="less" scoped></style>
